<?php

namespace app\extend\mylog;

class MyLogDriver
{
    private $file = null;
    public function __construct($file)
    {
        $this->file = $file;
    }

    public function info($msg){
        file_put_contents($this->file, $msg, FILE_APPEND);
    }
}